package org.singledog.dogmail.common.entity;

import lombok.Getter;

import java.util.Random;

@Getter
public enum CommonResponse implements BaseResponse {

    OK(200, "OK"),
    UNAUTHORIZED(401, "Unauthorized"),
    REQUEST_METHOD_ERROR(405, "Method Not Allowed"),
    SERVER_ERROR(500, "Internal Server Error"),
    TOO_MANY_REQUEST(600, "Too Many Requests"),
    REQUEST_PARAM_ERROR(601, "Request Param Error");

    private static final long serialVersionUID = new Random(System.currentTimeMillis()).nextLong();

    private Integer code;

    private String message;

    CommonResponse(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
